package io.github.wslxm.springbootplus2.core.base.desensitization.handler;


import cn.hutool.core.util.DesensitizedUtil;
import cn.hutool.core.util.StrUtil;
import io.github.wslxm.springbootplus2.core.base.desensitization.DesensitizationHandler;

/**
 * 【密码】密码的全部字符都用*代替，比如：******
 *
 * @author wangsong
 * @date 2023/09/05
 */
public class PasswordDesensitizationHandler implements DesensitizationHandler {

    @Override
    public String handler(String str) {
        return DesensitizedUtil.password(str);
    }
}
